package com.ruoyi.chiwen.domain;

import java.math.BigDecimal;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 应还金额对象 tb_staging
 * 
 * @author chiwen
 * @date 2021-06-14
 */
public class TbStaging extends BaseEntity
{
    private static final long serialVersionUID = 1L;


    private String phoneNumber;

    /** $column.columnComment */
    private Long tId;

    /** 用户表id */
    @Excel(name = "用户表id")
    private Long userId;

    /** 审批表id */
    @Excel(name = "审批表id")
    private Long aId;

    /** 本金 */
    @Excel(name = "本金")
    private BigDecimal aPrincipal;

    /** 利息 */
    @Excel(name = "利息")
    private BigDecimal aInterest;

    /** 是否逾期 */
    @Excel(name = "是否逾期0未逾期1已逾期")
    private Integer aIsOverdue;

    /** 逾期天数 */
    @Excel(name = "逾期天数")
    private Integer aOverdueDays;

    /** 逾期费用 */
    @Excel(name = "逾期费用")
    private BigDecimal aOverdueMoney;

    /** 应还金额（本金+利息+逾期费用） */
    @Excel(name = "应还金额", readConverterExp = "本=金+利息+逾期费用")
    private BigDecimal aAllMoney;

    /** 应还月份 */
    @Excel(name = "应还月份")
    private Integer aMonth;

    /** 当前期数 */
    @Excel(name = "当前期数")
    private String aNper;

    /** 还款状态,0已结清1待结算 */
    @Excel(name = "还款状态,0已结清1待结算")
    private Integer aStatus;

    /** 创建人 */
    @Excel(name = "创建人")
    private String createPerson;

    /** 修改人 */
    @Excel(name = "修改人")
    private String updatePerson;

    /** 逻辑删除 */
    @Excel(name = "逻辑删除")
    private Integer isDeleted;

    public void settId(Long tId) 
    {
        this.tId = tId;
    }

    public Long gettId() 
    {
        return tId;
    }
    public void setaId(Long aId) 
    {
        this.aId = aId;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Long getaId()
    {
        return aId;
    }

    public BigDecimal getaPrincipal() {
        return aPrincipal;
    }

    public void setaPrincipal(BigDecimal aPrincipal) {
        this.aPrincipal = aPrincipal;
    }

    public BigDecimal getaInterest() {
        return aInterest;
    }

    public void setaInterest(BigDecimal aInterest) {
        this.aInterest = aInterest;
    }

    public void setaIsOverdue(Integer aIsOverdue)
    {
        this.aIsOverdue = aIsOverdue;
    }

    public Integer getaIsOverdue() 
    {
        return aIsOverdue;
    }
    public void setaOverdueDays(Integer aOverdueDays) 
    {
        this.aOverdueDays = aOverdueDays;
    }

    public Integer getaOverdueDays() 
    {
        return aOverdueDays;
    }
    public void setaOverdueMoney(BigDecimal aOverdueMoney) 
    {
        this.aOverdueMoney = aOverdueMoney;
    }

    public BigDecimal getaOverdueMoney() 
    {
        return aOverdueMoney;
    }
    public void setaAllMoney(BigDecimal aAllMoney) 
    {
        this.aAllMoney = aAllMoney;
    }

    public BigDecimal getaAllMoney() 
    {
        return aAllMoney;
    }
    public void setaMonth(Integer aMonth) 
    {
        this.aMonth = aMonth;
    }

    public Integer getaMonth() 
    {
        return aMonth;
    }
    public void setaNper(String aNper) 
    {
        this.aNper = aNper;
    }

    public String getaNper() 
    {
        return aNper;
    }
    public void setaStatus(Integer aStatus) 
    {
        this.aStatus = aStatus;
    }

    public Integer getaStatus() 
    {
        return aStatus;
    }
    public void setCreatePerson(String createPerson) 
    {
        this.createPerson = createPerson;
    }

    public String getCreatePerson() 
    {
        return createPerson;
    }
    public void setUpdatePerson(String updatePerson) 
    {
        this.updatePerson = updatePerson;
    }

    public String getUpdatePerson() 
    {
        return updatePerson;
    }
    public void setIsDeleted(Integer isDeleted) 
    {
        this.isDeleted = isDeleted;
    }

    public Integer getIsDeleted() 
    {
        return isDeleted;
    }

    public String getPhoneNumber() {
        return phoneNumber;
    }

    public void setPhoneNumber(String phoneNumber) {
        this.phoneNumber = phoneNumber;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("tId", gettId())
            .append("phoneNumber", getPhoneNumber())
            .append("userId", getUserId())
            .append("aId", getaId())
            .append("aPrincipal", getaPrincipal())
            .append("aInterest", getaInterest())
            .append("aIsOverdue", getaIsOverdue())
            .append("aOverdueDays", getaOverdueDays())
            .append("aOverdueMoney", getaOverdueMoney())
            .append("aAllMoney", getaAllMoney())
            .append("aMonth", getaMonth())
            .append("aNper", getaNper())
            .append("aStatus", getaStatus())
            .append("createPerson", getCreatePerson())
            .append("updateTime", getUpdateTime())
            .append("updatePerson", getUpdatePerson())
            .append("isDeleted", getIsDeleted())
            .toString();
    }
}
